GetIOBuffers
Provides pointers to the input and output buffers of an I/O module. This function is only for RTX64 programs.
Syntax
KsError GetIOBuffers(
int Index,
void** InputBuffer,
void** OutputBuffer
);
Parameters
Index: the index of an I/O module. Indexes are zero based. Aliases affect this parameter.
InputBuffer: pointer to a void* variable where the module input buffer pointer will be stored.
OutputBuffer: pointer to a void* variable where the module output buffer pointer will be stored.
Return value
If the function succeeds, it returns errNoError, otherwise an error code. For more information about the error code, see the KsError list.
Usable EtherCAT states
ecatOP
Example
Copy
void* InputBuffer = NULL;
void* OutputBuffer = NULL;
nRet = GetIOBuffers(0, &InputBuffer, &OutputBuffer);
if (nRet == errNoError && InputBuffer != NULL)
{
// Access to InputBuffer
}
if (nRet == errNoError && OutputBuffer != NULL)
{
// Access to OutputBuffer
}
Requirements
| RT | Win32 | |
|---|---|---|
| Minimum supported version | 4.0 | 4.0 |
| Header | ksapi.h | ksapi.h |
| Library | KsApi_Rtss.lib | KsApi.lib |
See also